package lab02.test20;

/**
 * Created by mac on 2017/11/1.
 */
public class Test {

    public static void main(String[] args) {


        //从键盘输入一行含有数字和字符的字符串，程序仅仅输出字符串中的全部数字字符。
        String result = "weaoto19";

        char tmp = 0;
        int i;

        for (i=0; i<result.length();i++){

            tmp = result.charAt(i);

            if (tmp>='a' && tmp<='z'){

                System.out.println(" ");
            }
            else if (tmp>='0' && tmp<='9'){

                System.out.println(tmp);
            }

        }
    }


}
